package com.cxcy.swustlearner.mapper;

import com.cxcy.swustlearner.pojo.Class;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ClassMapper {
    @Select("select * from class")
    List<Class> selectClass();
    @Insert("insert into class (class_name, update_time, college_id, major_id, create_time) VALUES (#{className},NOW(),#{collegeId},#{majorId},NOW())")
    int insertClass(Class classes);

}